package com.life.muyu.model;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @Author zyb
 * @Date 2020-05-10 6:15 PM
 **/
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@TableName("t_mail_send_records")
public class MailSendRecord {
    @TableId(type = IdType.INPUT)
    private Integer id;
    /**
     * 关联新闻表的id
     */
    private Integer newsId;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date sendTime;
    private Integer mailSender;
}
